#ifndef RATIONAL_H
#define RATIONAL_H


class Rational
{
    public:
        Rational();
        Rational(int x,int y);
        Rational(int x);
        operator int(){return nume;}
        void print();
        friend Rational operator+(Rational a,Rational b);
    private:
        int nume,deno;
        void optimize();
};

#endif // RATIONAL_H
